/*
 *  start.S 
 *  very simple code for ARM 7TDMI 
 *
 *  author: SU Hang 
 *  date:   2004-08-28 
 */
 	

#define MODE_SVC 0x13
#define I_BIT   0x80
	
.text
	.align 4
	.global begin
	.type begin, function

begin:
	
	/*disable I-bit*/
	mov     r0, #I_BIT|MODE_SVC
	msr     cpsr_c, r0

	mov	r1,#0xd2
	sub	r2,r0,r1
	ldr 	sp, =_stack_begin
	bl	entry
	b	stop
			
stop:
    b stop

.data
	.align  4

